package com.agrm.address.service;

import com.agrm.model.address.pojo.ChinaRegions;

import java.util.List;

public interface ChinaRegionsService {
    //前端
    List<ChinaRegions> findAll(ChinaRegions category);

    //查询全部，非树型结构
    List<ChinaRegions> findAll();

    //以树型结构的形式
    List<ChinaRegions> findTree();

    //以树型结构返回
    ChinaRegions findById(Integer id);
    List<ChinaRegions> findSubTreeById(Integer id);

    boolean save(ChinaRegions category);

    boolean update(ChinaRegions category);

    int deleteById(Integer id);
}
